classdef population
    properties (SetAccess=private,GetAccess=public)
        type
    end
    methods
        function s = population(type)
            if ischar(type)
                s.type = type;
            else
                error('population:wrongType','type needs to be a char');
            end
        end
    end
end